package com.gzx.spring.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户分值评定表
 * </p>
 *
 * @author qinpeng
 * @since 2025-10-23
 */
@Getter
@Setter
@TableName("user_score_result")
@ApiModel(value = "UserScoreResult对象", description = "用户分值评定表")
public class UserScoreResult implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    @TableField("uid")
    private Integer uid;

    @ApiModelProperty("订单编号")
    @TableField("ordercode")
    private String ordercode;

    @ApiModelProperty("姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty("身份证号")
    @TableField("id_card")
    private String idCard;

    @ApiModelProperty("手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("天御分值")
    @TableField("tianyu_score")
    private String tianyuScore;

    @ApiModelProperty("璞玉分值")
    @TableField("puyu_score")
    private String puyuScore;

    @ApiModelProperty("客户等级（A/B/C/D/E）")
    @TableField("grade")
    private String grade;

    @ApiModelProperty("通过率")
    @TableField("pass_rate")
    private BigDecimal passRate;

    @ApiModelProperty("监管机（0非强制，1强制）")
    @TableField("machine")
    private Integer machine;

    @ApiModelProperty("预收期数")
    @TableField("prepay_periods")
    private Integer prepayPeriods;

    @ApiModelProperty("最低押金（单位：元，保留2位小数）")
    @TableField("min_deposit")
    private BigDecimal minDeposit;

    @ApiModelProperty("碎屏保（0非强制，1强制）")
    @TableField("screen_insurance")
    private Integer screenInsurance;

    @ApiModelProperty("创建时间（默认当前时间）")
    @TableField("created_time")
    private LocalDateTime createdTime;

    @ApiModelProperty("修改时间（更新时自动刷新）")
    @TableField("updated_time")
    private LocalDateTime updatedTime;
}
